package com.gmall.model.product.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class BaseCategoryDTO {

    private Long id;
    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "分类编号")
    private Long parentID;

    @ApiModelProperty(value = "级别")
    private Long level;
    //Java 树状结构的体现形式
    @ApiModelProperty(value = "children")
    List<BaseCategoryDTO> children;
}
